import { createFromIconfontCN } from '@ant-design/icons';
import type { IconFontProps } from '@ant-design/icons/es/components/IconFont';

const Iconfont = createFromIconfontCN({
  scriptUrl: '/iconfont.js'
});

const Icon = (props: IconFontProps) =>
  <Iconfont {...{ ...props, type: `icon-${props.type}` }} />;

export default Icon;